#include "asuro.h"

void testOne(void);
void testTwo(void);

void (*functionPointerTest)(void) = '\0';


int main(void)
{
  Init();
  
  unsigned char i;
  
  BackLED(OFF, OFF);
  StatusLED(OFF);

  functionPointerTest = &testOne;


  while(1)
  {
    (*functionPointerTest)();
	
    /* wait one second (Correct to within Experimental Error)  */
    for(i = 0; i < 255; i++)
    {
      Sleep(255);
    }
  }

  while(1);
  return 0;
}


void testOne(void)
{
  BackLED(ON, OFF);
  functionPointerTest = &testTwo;
}


void testTwo(void)
{
  BackLED(OFF, ON);
  functionPointerTest = &testOne;
}
